package org.ehe.finance.voucher.domain.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 * 批量保存凭证明细业务对象
 * @author :zhangnn
 * @className :VoucherDetailBatchSaveBo
 * @description: TODO
 * @date 2025-08-25 13:21:04
 */
@Data
public class VoucherDetailBatchSaveBo {
    @Schema(description = "凭证主表ID")
    @NotNull(message = "凭证ID不能为空")
    private Long voucherId;

    @Schema(description = "明细列表")
    @NotNull(message = "明细列表不能为空")
    @Size(min = 2, message = "至少需要2条分录")
    private List<VoucherDetailCreateBo> details;
}
